import request from '../axios'
import Wx from '../wx'
import { APP_URL } from '../app.config'

// 获取签名在内的配置
export function getConfig () {
  const url = '/api/sdk/config'
  const params = {
    url: APP_URL + Wx.getPath()
  }
  return request.get(url, { params })
}
